package blueBridgeCup;

import java.util.Scanner;

public class demo12 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int N=in.nextInt();
        for (int i = 0; i <N ; i++) {
            double x= in.nextDouble();
            System.out.printf("%3d",Math.pow(x,1/3.0));
            System.out.println();
        }

    }
}
